package com.baizhi.dao;

import com.baizhi.entity.Survey;

import java.util.List;

public interface SurveyDao {
	public List<Survey> selectMySurvey(int userid);
	public void insert(Survey survey);
	public Survey selectOne(int id);
	//根据surveyid把当前调查下的最小页的pageid获取到
	public int selectMinPageIdBySurveyId(int surveyId);
	public Survey selectOnlySurvey(int id);

	//根据surveyid把当前调查下的最大页的pageid获取到
	public int selectMaxPageIdBySurveyId(int surveyId);
	public List<Survey> findAllAvailableSurveys();
}
